package Test;

public class Test {
    public static void main(String[] args) {
        Dog d=new Dog("小狗",2);
        Frog f=new Frog("青蛙",1);
        Sheep s=new Sheep("山羊",3);

        System.out.println(f.getName()+","+f.getAge());
        f.eat();
        f.drink();
    }
}
